package com.it.myh;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: Ev_0422_01    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2023/4/22 11:34   // 时间
 * @Version: 1.0     // 版本
 */
public class Ev_0422_01 {

    public static void main(String[] args) {
        List<String> list = list();
        Stream<String> stream = list.stream();
        Stream<String> stringStream = list.parallelStream();
        Stream<String> stream1 = Arrays.stream(strings());
        Stream<Integer> stream2 = Stream.of(1, 2, 3, 4, 5, 6);
    }

    public static String[] strings(){

        return new String[]{"a","b","c", "d", "e", "f", "g"};
    }
    public static List<String> list(){

        List<String> list = Arrays.asList("a", "b", "c", "d", "e", "f", "g");
        return list;
    }
}
